(function () {
    'use strict';

    angular.module('app').service('WctUserService', WctUserService);

    WctUserService.$inject = [
        'A',
        'Api'
    ];

    function WctUserService(A, Api) {
        function sync() {
            return A.Ajax.post(Api.wct.user.sync);
        }

        function send(content, openIds) {
            return A.Ajax.post(Api.wct.user.send, {
                content: content,
                openIds: openIds
            })
        }

        return {
            sync: sync,
            send: send
        };
    }
})();